package Test_0807;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-08-07
 * Time: 19:19
 */
public class Bird extends Animal implements IFly{
    public Bird(String name, int age) {
        super(name, age);
    }
    @Override
    public void eat() {
        System.out.println(this.name+"吃虫子");
    }
    public void fly(){
        System.out.println(this.name+"会飞");
    }
}
